package com.core.bean;

/**
 * 苏
 * 订单详情表
 */
public class ShoppingOrderDetail {
    /**
     *订单编号
     */
    private String id ;
    /**
     *购物单id
     */
    private String so_id;
    /**
     *商品快照
     * 是goods对象，传给数据库要转换成String
     */
    private String goods;
    /**
     * goods数量
     */
    private int count;

    public ShoppingOrderDetail() {
    }

    public ShoppingOrderDetail(String id, String so_id, String goods, int count) {
        this.id = id;
        this.so_id = so_id;
        this.goods = goods;
        this.count = count;
    }

    @Override
    public String toString() {
        return "ShoppingOrderDetailDomain{" +
                "id='" + id + '\'' +
                ", so_id='" + so_id + '\'' +
                ", goods='" + goods + '\'' +
                ", count=" + count +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSo_id() {
        return so_id;
    }

    public void setSo_id(String so_id) {
        this.so_id = so_id;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
